package com.example.administrator.jingpingou.ui;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

import com.example.administrator.jingpingou.R;

public class MineTaoActivity extends AppCompatActivity {
    private ImageView mImageViewBack,mImageViewGo,mImageRefresh;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mine_tao);
        iniView();
        setListener();
    }

    private void setListener() {

        mImageViewBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
              finish();


            }
        });
        mImageViewGo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(MineTaoActivity.this, "不能再往后了", Toast.LENGTH_SHORT).show();
            }
        });

    }

    private void iniView() {
        mImageViewBack= (ImageView) findViewById(R.id.iv_minetao_back);
        mImageViewGo= (ImageView) findViewById(R.id.iv_minetao_go);
        mImageRefresh= (ImageView) findViewById(R.id.iv_minetao_refresh);
    }

    @Override
    protected void onPause() {
        super.onPause();
        overridePendingTransition(0,R.anim.activity_finish);
    }
}
